package com.wang.event;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * 我的事件
 * @author Zjx
 */
public class MyEvent implements ApplicationListener {
    private Logger log = LogManager.getLogger();

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        log.info("==谁调用我了(系统)==event:{}", event);
    }
}
